.services {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 30px;
    padding: 0 1rem;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 70px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0c4fad;
    font-family: 'Poppins', sans-serif;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Tablet - Medium screens */
@media (max-width: 1024px) {
    .services {
        padding: 50px 20px;
    }

    .services-grid {
        gap: 25px;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }
}

/* Mobile - Small screens */
@media (max-width: 768px) {
    .services {
        padding: 40px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Single column on smaller tablets & phones */
    }

    .service-card {
        padding: 25px 15px;
    }

    .service-card img {
        width: 65px;
        margin-bottom: 18px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .service-card img {
        width: 55px;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}